<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    #container {
      width: 100vw;
      height: 100vh;
    }
  </style>
</head>

<body>
  <div id="container"></div>
</body>
<script type="text/javascript"
  src="https://webapi.amap.com/maps?v=1.4.15&key=2f461cf6a41f51c2f158bd39305fd543"></script>
<script>
  window.onload = function () {
    var map = new AMap.Map('container');
  }
</script>

</html>